package com.qingyun.modular.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.sql.Timestamp;
import java.util.Date;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 广西利码优信息科技有限公司
 * @since 2021-05-07
 */
@TableName("admin_users")
public class AdminUsers {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    private Integer id;
    /**
     * 手机号
     */
    @TableField("mobile")
    private String mobile;
    /**
     * 名称
     */
    @TableField("name")
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRememberToken() {
        return rememberToken;
    }

    public void setRememberToken(String rememberToken) {
        this.rememberToken = rememberToken;
    }

    public int getSourceType() {
        return sourceType;
    }

    public void setSourceType(int sourceType) {
        this.sourceType = sourceType;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public String getMiniOpenid() {
        return miniOpenid;
    }

    public void setMiniOpenid(String miniOpenid) {
        this.miniOpenid = miniOpenid;
    }

    public String getAliOpenid() {
        return aliOpenid;
    }

    public void setAliOpenid(String aliOpenid) {
        this.aliOpenid = aliOpenid;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getCardPassword() {
        return cardPassword;
    }

    public void setCardPassword(String cardPassword) {
        this.cardPassword = cardPassword;
    }

    public int getCardListsId() {
        return cardListsId;
    }

    public void setCardListsId(int cardListsId) {
        this.cardListsId = cardListsId;
    }

    public int getIsDel() {
        return isDel;
    }

    public void setIsDel(int isDel) {
        this.isDel = isDel;
    }

    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    public Timestamp getEndLoginAt() {
        return endLoginAt;
    }

    public void setEndLoginAt(Timestamp endLoginAt) {
        this.endLoginAt = endLoginAt;
    }

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;
    /**
     * 密码
     */
    @TableField("password")
    private String password;
    /**
     * 用户类型
     */
    @TableField("user_type")
    private int userType;
    /**
     * 管理员、代理商的中文姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * token
     */
    @TableField("remember_token")
    private String rememberToken;
    /**
     * 注册来源，【1】手工注册，【2】卡密
     */
    @TableField("source_type")
    private int sourceType;
    /**
     * 微信的openid
     */
    @TableField("wx_openid")
    private String wxOpenid;
    /**
     * 微信小程序
     */
    @TableField("mini_openid")
    private String miniOpenid;
    /**
     * 支付宝小程序
     */
    @TableField("ali_openid")
    private String aliOpenid;
    /**
     * 卡密的卡号
     */
    @TableField("card_no")
    private String cardNo;
    /**
     * 卡密的密码
     */
    @TableField("card_password")
    private String cardPassword;
    /**
     * 对应【club_card_lists】的【id】
     */
    @TableField("card_lists_id")
    private int cardListsId;
    /**
     * 是否已删除，【0】未删除，【1】已删除
     */
    @TableField("is_del")
    private int isDel;
    /**
     * 修改时间
     */
    @TableField("updated_at")
    private Timestamp updatedAt;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Timestamp createdAt;
    /**
     * 最后登陆时间
     */
    @TableField("end_login_at")
    private Timestamp endLoginAt;
}
